import request from '@/utils/request'

/**
 * @description: 销售订单列表
 * @param {*} params
 * @return {*}
 */
export function getXsddOrderList(params) {
  return request({
    url: '/order/xsdd/list',
    method: 'get',
    params
  })
}

/**
 * @description: 保存销售订单
 * @param {*} params
 * @return {*}
 */
export function saveXsddOrder(data) {
  return request({
    url: '/order/xsdd/add',
    method: 'post',
    data
  })
}

/**
 * @description: 获取销售订单详情
 * @param {*} params
 * @return {*}
 */
export function getXsddDetail(params) {
  return request({
    url: '/order/xsdd/detail',
    method: 'get',
    params
  })
}

/**
 * @description: 审核、反审核
 * @param {*} data
 * @return {*}
 */
export function examineXsdd(data) {
  return request({
    url: '/order/xsdd/examine',
    method: 'post',
    data
  })
}

/**
 * @description: 更新销售订单
 * @param {*} data
 * @return {*}
 */
export function updateXsdd(data) {
  return request({
    url: '/order/xsdd/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除销售订单
 * @param {*} data
 * @return {*}
 */
export function deleteXsdd(data) {
  return request({
    url: '/order/xsdd/delete',
    method: 'post',
    data
  })
}
